<div class="login" ng-controller="login">
    <section>
        <h1>welcome my blog</h1>
        <div class="form">
            <div id="message" class="errorbox" ng-show="word">{{word}}</div>
            <form ng-submit="login()" novalidate name="form">
                <input type="text" name="name" ng-model="formData.name" ng-click="errorBye()" autofocus required placeholder="请输入用户名">
                <i class="icon-ok-sign" ng-show="form.name.$valid && form.name.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.name.$invalid && form.name.$dirty" title="用户名不能超过8个字符"></i>
                <br>
                <input type="password" ng-model="formData.password" name="password" ng-pattern="/(?!^\\d+$)(?!^[a-zA-Z]+$)(?!^[_#@]+$).{5,}/" ng-maxlength="12" ng-click="errorBye()" required placeholder="请输入密码">
                <i class="icon-ok-sign" ng-show="form.password.$valid && form.password.$dirty"></i>
                <i class="icon-remove-sign" ng-show="form.password.$invalid && form.password.$dirty" title="6-12位，只能包含字母、数字和下划线"></i>
                <br>
                <input type="submit" ng-disabled="form.$invalid" value="登录" id="login"><br>
            </form>
            <a ui-sref="signin">新用户注册注册</a>
        </div>
    </section>
</div>